<?php namespace App\Infra;

use App\Utils\ModelOperatorTrait;
use App\Models\HotelInfo;
class HotelInfoManager{
	use ModelOperatorTrait;

	public function getHotelInfos($conditions = null,$first = false,$union = []){
		return $this->findModel(HotelInfo::class,HotelInfo::query()->with($union),$conditions,$first);
	}

	public function updateHotelInfo($conditions = null,$data = null){
		$this->update(HotelInfo::class,HotelInfo::query(),$conditions,$data);
	}

	public function createHotelInfo($data){
		$this->create(HotelInfo::class,$data);
	}

	public function deleteHotelInfo($conditions = null){
		$this->delete(HotelInfo::class,HotelInfo::query(),$conditions);
	}
}